/**
 * 
 */
package info.pello.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;



/**
 * Main App
 * @author Pello Altadill
 * @greetz 4 u and for all DAM1-DAM2 sick people, go and get a life
 */
public class Main {
 
    public static void main (String args[]) {
    	ApplicationContext context = new ClassPathXmlApplicationContext("javamon.xml");
           Combat combat =(Combat) context.getBean("mycombat");
           
           
           combat.combat();
        
           System.out.println("And the winner is: " + combat.outcome().getName());
        
           System.out.println("Thanks for playing javamon");
    }
}
